From: incogshift Date: Sat, 4 Oct 2025 08:05:00 +0000 (+0000) Subject: Added a comment: My config works now X-Git-Tag: archive/raspbian/10.20251029-1+rpi1~1^2~3^2~23 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0fc15181d5f8c39add66a4dee67ffaff3175a105;p=git-annex.git Added a comment: My config works now --- diff --git a/doc/forum/annex.largefiles_doesn__39__t_work_for_git_add/comment_1_132d155d5445745e5ee086370be48aad._comment b/doc/forum/annex.largefiles_doesn__39__t_work_for_git_add/comment_1_132d155d5445745e5ee086370be48aad._comment new file mode 100644 index 0000000000..2055ee769c --- /dev/null +++ b/doc/forum/annex.largefiles_doesn__39__t_work_for_git_add/comment_1_132d155d5445745e5ee086370be48aad._comment @@ -0,0 +1,30 @@ +[[!comment format=mdwn + username="incogshift" + avatar="http://cdn.libravatar.org/avatar/fe527f5047693f6657cd03a6893da975" + subject="My config works now" + date="2025-10-04T08:05:00Z" + content=""" +I have `.gitattributes`: + +``` +* annex.largefiles=nothing filter=annex +*.pdf annex.largefiles=anything filter=annex +``` + +and git config: + +``` +[annex] + gitaddtoannex = true +``` + +Using `git add` now adds it to annex. This can be confirmed with + +``` +git annex info file.pdf +``` + +The output should show `present = true` at the end. If it wasn't added to annex, the output would show `fatal: Not a valid object name file.pdf`. + +And it seems that, by default, the files are stored in the working tree in their unlocked state. So `git add` doesn't replace the file with a symlink unlike `git annex add` +"""]]